/* $Id: wdog.h 13 2006-12-14 21:07:45Z judas $ */

#ifndef NIH_WDOG_H
#define NIH_WDOG_H 1

#include <nih/cdefs.h>

BEGIN_C_DECLS

enum {
        NIH_WDOG_ALARM = 0,
        NIH_WDOG_THREAD,
};

enum {
        NIH_WDOG_LOG = 0,
        NIH_WDOG_ABORT,
};

/* Arms an ALARM timeout, or creates a detached thread */
extern ssize_t nih_wdog(size_t msec, int type, int action);

END_C_DECLS

#endif /* NIH_WDOG_H */

